
<%@page import="java.sql.Statement"%>
<%@page import="java.sql.Connection"%>
<%@page import="javax.swing.JOptionPane"%>
<%@page import="java.sql.DriverManager"%>


<%
   
    Connection conn=null;
    Statement sql=null;
    try{
        Class.forName("com.mysql.jdbc.Driver");
       
        conn =(Connection)DriverManager.getConnection("jdbc:mysql://localhost:3306/mysql?zeroDateTimeBehavior=convertToNull", "admin", "admin");
        sql=conn.createStatement();
         
    }catch(Exception e){
        JOptionPane.showMessageDialog(null, "Conectou");
       
    
    }
    
    %>